




"""
from vavava.httpclient import HttpClient
c=HttpClient()
data=c.Get('http://www.baidu.com')
print data.decode('utf-8')
"""
from vavava.util import _interval_timer
import urllib,hashlib,base64

circle_displacement_char = lambda c,i:chr( ((ord(c)-ord('a')+i)%26)+ord('a') )

def test():
    k1 = 'ibdutasodwlnvreodutasobd'
    k2 = 'mabthtgoiileebgobthtnta'
    out = ""
    for i in range(len(k1)):
        out += k1[i]
        if i<len(k2):out += k2[i]
    print out

    kk = "ibdutasodwlnvreodutasobdmabthtgoiileebgobthtnta"
    ss = k1
    for i in range(20):
        ss = base64.b64encode(ss)
        print '[',i,']',ss

if __name__ == "__main__":
    import vavava.util
    log = vavava.util.initlog("./log/test_http.log")
    try:
        test()
    except(KeyboardInterrupt):
        log.info('main thread(%f):stop',_interval_timer())
        a=raw_input()
        log.info('main thread(%f):stopped',_interval_timer())

